package com.bsj.sipgateway.sip.session;

import com.bsj.sipgateway.sip.bean.Position;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @Author WPH
 * @Description 缓存写VI用的信息（目前只有经纬度）
 * @Date 2022/8/16 14:22
 */
public class PositionManager {

    //key:deviceId
    private static ConcurrentHashMap<String, Position> viDataMap = new ConcurrentHashMap<>();

    public static void put(String deviceId, Position position) {
        viDataMap.put(deviceId, position);
    }

    public static Position get(String deviceId) {
        return viDataMap.get(deviceId);
    }

}
